(function(window, undefined){
  'use strict';
  var ns = window.beneath = window.beneath || {};

  
  function createMap(w, h) {
    var out = new Array(w * h);
    out.get = function (x, y) {
      return out[x + y * w];
    };
    out.set = function (v, x, y) {
      out[x + y * w] = v;
      return v;
    };
    return out;
  }

  

  ns.createMap = createMap;
})(window);